﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace YJTTool.DBBaseServer.Interfaces
{
    public interface IBaseRepository<T> where T : class
    {
        public List<T> Query();
        public Task<T> GetByIdAsync(int id);
        public Task InsertAsync(T entity);
        public Task UpdateAsync(T entity);
        public Task DeleteIdAsync(int id);
        public Task<int> DeleteByWhereAsync(Expression<Func<T, bool>> whereExpression);
    }
}
